package com.xqls.dal.service;


import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.xqls.dal.model.FlowMeter;
import com.xqls.dal.model.FlowMeterExample;

public interface FlowMeterMapper {
    long countByExample(FlowMeterExample example);

    int deleteByExample(FlowMeterExample example);

    int deleteByPrimaryKey(Integer flowId);

    int insert(FlowMeter record);

    int insertSelective(FlowMeter record);

    List<FlowMeter> selectByExample(FlowMeterExample example);

    FlowMeter selectByPrimaryKey(Integer flowId);

    int updateByExampleSelective(@Param("record") FlowMeter record, @Param("example") FlowMeterExample example);

    int updateByExample(@Param("record") FlowMeter record, @Param("example") FlowMeterExample example);

    int updateByPrimaryKeySelective(FlowMeter record);

    int updateByPrimaryKey(FlowMeter record);
    
    List<Map<String , Object>> selectByMap(Map<String, Object> map);
    
    int deleteByflowmeter(FlowMeter flowMeter);
    
    FlowMeter selectByClose(Map<String, Object> map);
    
    List<FlowMeter> selectBySmonth(Date close,String deviceNo);
    
    List<Map<String , Object>> selectBySmonth(Map<String, Object> map);
    
    List<Map<String , Object>> selectflowcost(Map<String, Object> map);
    
    List<Map<String , Object>> getListByMap(Map<String, Object> map);
    
    FlowMeter selectBytime(Map<String, Object> map);
    
}